package kfm.model;
import kfm.model.Goods;

public class Shop{
    private int shopnum;
    private Goods shopgoods;


    public Shop(){

    }

    public Shop(int shopnum, Goods shopgoods) {
        this.shopnum = shopnum;
        this.shopgoods = shopgoods;
    }

    public int getShopnum() {
        return shopnum;
    }

    public void setShopnum(int shopnum) {
        this.shopnum = shopnum;
    }

    public Goods getShopgoods() {
        return shopgoods;
    }

    public void setShopgoods(Goods shopgoods) {
        this.shopgoods = shopgoods;
    }


    @Override
    public String toString() {
        return "【所选商品为】" +
                "序号：" + shopgoods.getGoodNo() + "\t" +
                "名称：" + shopgoods.getGoodsName() + "\t"+
                "售价：" + shopgoods.getPrice() + "\t" +
                "购买数量：" + shopnum ;
    }
}
